/*
 * Copyright (c) 2021, mrwang. All rights reserved.
 */

package com.wuyan.authorization.service;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

import java.util.ArrayList;
import java.util.List;

/**
 * @author dong
 * @version V1.0
 * @file com.wuyan.authorization.service.UserDetailServiceImpl
 * @description
 * @date 2021-03-11
 * @update [序号][日期YYYY-MM-DD] [更改人姓名][变更描述]
 */
public class UserDetailServiceImpl implements UserDetailsService {


	@Override
	public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
		List<GrantedAuthority> grantedAuthorities = new ArrayList<>();
		return  new JwtUserDetails(1L,true,"11","123456",grantedAuthorities);
	}
}
